import config from '../../utils/config';
import apiCreator from '../../utils/apiCreator';

const api = apiCreator();

export default {
  // 交易复盘-指标结果
  getTradeIndicatorData: (query) => api.get(`${config.interfaces.type3}tradeanalysis/tradeIndicatorData`, query),

  // 交易复盘-K线图
  getKLineData: (query) => api.get(`${config.interfaces.type3}tradeanalysis/getTradeKBars`, query),

  //获取交易统计信息
  getTradeCount: (query) => api.get(`${config.interfaces.type3}tradeanalysis/tradeCount`, query),

  //获取市场异动信息
  getUnusualFluctuation: (query) => api.get(`${config.interfaces.type3}tradeanalysis/unusualFluctuation`, query),

  //获取交易明细信息
  getTradeDetail: (query) => api.get(`${config.interfaces.type3}tradeanalysis/tradeDetail`, query),
};
